package com.product.to;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(title = "修改用户To")
public class UpdateUserTo {
    @NotNull(message = "用户id不能为空")
    @Schema(title = "用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer userId;

    @Schema(title = "用户昵称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String name;

    @Schema(title = "用户名", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String username;

    @Schema(title = "用户密码", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String password;

    @Schema(title = "用户描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String msg;
}
